package cn.org.mrliu.ssm.mq;

import org.springframework.data.redis.connection.Message;
import org.springframework.data.redis.connection.MessageListener;

/**
 * redis订阅消息的监听器
 * 
 * @author MrLiu
 *
 */
public class MessageListenerImpl implements MessageListener {

	@Override
	public void onMessage(Message message, byte[] pattern) {
		System.out.println("channel:" + new String(message.getChannel()) + ",message:" + new String(message.getBody()));
	}

}
